<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"/>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理员添加</title>
<load href='__PUBLIC__/Css/style.css' />
<load href="__PUBLIC__/Js/jquery-1.4.min.js" />
<load href="__PUBLIC__/Js/jquery.checkform.js" />
<load href="__PUBLIC__/Js/Base.js" />
<load href="__PUBLIC__/Js/prototype.js" />
<load href="__PUBLIC__/Js/mootools.js" />
<load href="__PUBLIC__/Js/Ajax/ThinkAjax.js" />
<load href="__PUBLIC__/Js/Load.js" />

<script type="text/javascript">
	var _PUBLIC_ = '__PUBLIC__';
	 function tipname(namestr){ 
		return "tip_" + namestr.replace(/([a-zA-Z0-9])/g,"-$1");
	 }
	jQuery(function(){
		jQuery("#form1").valid([
			{ name:"sys_id",type:"username",simple:"管理员账号",min:5,max:20},
			{ name:"password",type:"password",simple:"密码",min:5,max:20},
			{ name:"password_conform",type:"eq",simple:"重复密码", to:"password" },
		]);
	})
	function checkAdminUser(){
		if(jQuery('#'+tipname('sys_id')).html()==' 正确 '){
			jQuery('#'+tipname('sys_id')).html('');
			ThinkAjax.send('__URL__/checkAdminUser','ajax=1&sys_id='+$('sys_id').value,'','userMsg');
		}
	}
</script>
<load href="__PUBLIC__/Js/Load.js" />
</head>
<body>
<div id="main" class="main" >
<div class="content">
<div class="title" style="background:url(__PUBLIC__/Images/tab_05.gif);"><div style="line-height:30px;height:30px;float:left"><img src="__PUBLIC__/Images/tb.gif" /></div><div style="float:left;margin-left:10px;"><span>你当前的位置：</span></div><span style="font-weight:normal;">[管理员添加]</span><div style="float:right;margin-right:30px;"><a href="__URL__"><img src="__PUBLIC__/Images/publish_g.png"/>&nbsp;&nbsp;返回列表</a></div></div>
<div id="result" class="result none"></div>
<form method='post' id="form1" name="form1" action="__URL__/insert"  enctype="multipart/form-data" >
<div class="errmsg">{$errmsg}</div>
<table cellpadding=3 cellspacing=3 style="margin-top:20px;margin-left:200px;" >
<tr>
	<td class="tRight" width="100px">用户名：</td>
	<td class="tLeft" ><input id="sys_id" style="float:left" type="text" class="huge bLeftRequire" name="sys_id" value="{$vo.sys_id}"/><div style="float:left"><input type="button"  style="float:left;" onclick="checkAdminUser()" value="检 测"/><div id="userMsg" style="color:red;float:left;"></div></div></td>
</tr>
<tr>
	<td class="tRight" width="100px">类别：</td>
	<td class="tLeft" >
		<select name="sys_type">
		    <option value="0" <eq name="vo.sys_type" value="0"> selected</eq>>普通管理员</option>
		    <option value="1" <eq name="vo.sys_type" value="1"> selected</eq>>超级管理员</option>
		</select>
	</td>
</tr>
<tr>
	<td class="tRight">密码：</td>
	<td class="tLeft" ><input type="password" class="huge bLeftRequire" name="password" value="{$vo.password}"/></td>
</tr>
<tr>
	<td class="tRight">确认密码：</td>
	<td class="tLeft" ><input type="password" class="huge bLeftRequire" name="password_conform" value="{$vo.password_conform}"/></td>
</tr>
<tr>
	<!-- <td align="right"><input type="hidden" name="ajax" value="1"/></td> -->
	<td class="center">
		<div style="width:85%;margin:5px">
			<input type="submit" value="保 存"  class="button small"/>
		</div>
	</td>
</tr>
</table>
</form>
</div>
</div>
</body>
